#include <string.h>
#include <stdio.h>
#include <stdlib.h>

#include "frmem.h"


void test01(void)
{
    char *p1, *p2, *p3;
    
    p1 = frmalloc(11);
    p2 = frmalloc(12);
    p3 = frmalloc(13);
    
    frfree(p1);
    frfree(p2);
    frfree(p3);
    
    p1 = frmemdup("11", 3);
    printf("p1=[%s]\n", p1);
    frfree(p1);
    
    //frfree(p3);

    return;
}

int main(int argc, char *argv[])
{
    
    frmem_init();
    
    test01();
    
    
    frshow_leak();
    frmem_destroy();
    
    return 0;
}
